pull: Use new per-remote API for GPG verification
authorColin Walters <walters@verbum.org>
Sat, 19 Nov 2016 01:23:13 +0000 (20:23 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 21 Nov 2016 15:55:09 +0000 (15:55 +0000)
Trivial change, but makes things more obvious.  And we get test
coverage of the new API for free.

Closes: #589
Approved by: jlebon

src/libostree/ostree-repo-pull.c

index 7a4ccfdbd2dc34671fcdd9e9b59ce412f9199316..943e170659bba245b65ace9ad200db1bf7df2f31 100644 (file)
@@ -1070,13 +1070,11 @@ scan_commit_object (OtPullData         *pull_data,
     {
       glnx_unref_object OstreeGpgVerifyResult *result = NULL;
 
-      result = _ostree_repo_verify_commit_internal (pull_data->repo,
-                                                    checksum,
-                                                    pull_data->remote_name,
-                                                    NULL,
-                                                    NULL,
-                                                    cancellable,
-                                                    error);
+      result = ostree_repo_verify_commit_for_remote (pull_data->repo,
+                                                     checksum,
+                                                     pull_data->remote_name,
+                                                     cancellable,
+                                                     error);
 
       if (result == NULL)
         goto out;